import argparse
from daily_question import DailyQues
from commons_util import Util
from book_mountain import BookMountain

if __name__ == "__main__":

    # dp = DailyQues()
    # dp.click_and_enter(123)
    # exit(0)

    parser = argparse.ArgumentParser('test')
    parser.add_argument('--mod', type=str, default='loop')
    args = parser.parse_args()
    if args.mod == 'loop':
        dp = DailyQues()
        dp.loop()

    if args.mod == 'pickup':
        # Util.repeat_click(880, 2100, 3)
        Util.repeat_click(613, 1709, 2)

    if args.mod == 'cursor_position':
        Util.print_cursor_position()

    if args.mod == 'test':
        dp = DailyQues()
        dp.test()

    if args.mod == 'book':
        bm = BookMountain()
        bm.loop()

    # doit()
    # loop()
    # test()

    # ct = time.time()
    # t = time.strftime("%M-%S", time.localtime(ct))
    # mi = int(t.split("-")[0])
    # se = int(t.split("-")[1])
    # ms = (ct - int(ct)) * 1000
    # print(f"{mi}-{se}-{ms}")
